import request from '../../utils/request-dev'
import access_token from '../../utils/request-token'

enum API{
    CAROUSEL = '/promotion/ads/search/findByPosition'
}
// 轮播图数据
export const getCarousel = ()=>request.get(`/promotion/ads/search/findByPosition?access_token=${access_token}&position=pc_mainpage`) 
// 视频列表数据
export const getDance = (pageSize:number,pageNum:number,localCache:number)=>request.get(`/moment/moments/rec/default?access_token=${access_token}&column=recommend&pageSize=${pageSize}&pageNum=${pageNum}&localCache=${localCache}`)



// https://www.dance365.com/apis/avocation/avocations/rec/user?access_token=3c9ce5d3-66ba-40cd-9024-dbe213605a55&pageNum=0&pageSize=20 各种舞蹈
// 兴趣技能
export const getInterest =(pageNum:number|string,pageSize:number|string)=>request.get(`/avocation/avocations/rec/user?access_token=${access_token}&pageNum=${pageNum}&pageSize=${pageSize}`) 
// export const reqHobbyList = (pageNum:number,pageSize:number)=>request.get(`/avocation/avocations/rec/user?access_token=${token}&pageNum=${pageNum}&pageSize=${pageSize}`)

//搜索兴趣技能
export const getSearch =(sad:string)=>request.get(`avocation/avocations/search/findByName?access_token=${access_token}&name=${sad}`)

// 二级页面历史数据
export const getHistory =()=>request.get(`/searchEngine/avocationSelectedRecords/search/findByUserId?access_token=${access_token}`)
// https://www.dance365.com/apis/searchEngine/avocationSelectedRecords/search/findByUserId?access_token=3c9ce5d3-66ba-40cd-9024-dbe213605a55&userId=ff80808183d5a6440183ea33d64b6066 搜索记录

// https://www.dance365.com/apis/avocation/avocations/search/findByName?access_token=3c9ce5d3-66ba-40cd-9024-dbe213605a55&name=sad 搜索兴趣技能

// https://www.dance365.com/apis/avocation/avocations/rec/user?access_token=3c9ce5d3-66ba-40cd-9024-dbe213605a55&pageNum=3&pageSize=20   推荐兴趣技能

// 换一批   https://www.dance365.com/apis/sns/userFollows/rec/default?access_token=d7311b9e-bcea-4c31-9186-05a6ec3a3f33&pageNum=2&pageSize=8

export const getFollow =(pageNum:number|string,pageSize:number|string)=>request.get(`/sns/userFollows/rec/default?access_token=${access_token}&pageNum=${pageNum}&pageSize=${pageSize}`)